package com.qf.commons.web.config;

import com.qf.commons.web.exception.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: tiger
 * @Data: 2024/10/22 23:15
 * @Description: web - 配置类(自动装配)
 **/

@Configuration
public class WebAutoconfiguration {


    /**
     @MethodName: getGlobalExceptionHandler
     @Param: []
     @Return: com.qf.commons.web.exception.GlobalExceptionHandler
     @Date: 2024/10/22 23:18
     @Description: 注册全局异常处理器
     **/
    @Bean
    public GlobalExceptionHandler getGlobalExceptionHandler() {
        return new GlobalExceptionHandler();
    }
}
